package demo

import (
	"gin-sns/app/ginframe/response"

	"github.com/gin-gonic/gin"
)

var ReportController = newReportController()

func newReportController() *reportController {
	return &reportController{}
}

type reportController struct {
}

func (c *reportController) Echarts(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/report/echarts").WriteTpl()
}

func (c *reportController) Metrics(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/report/metrics").WriteTpl()
}

func (c *reportController) Peity(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/report/peity").WriteTpl()
}

func (c *reportController) Sparkline(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/report/sparkline").WriteTpl()
}
